<!-- 电费账单 -->
<template>
	<view class="busines-mod" >
		<userinfoTop :yhbh="yhbh" />
		<view class="busines-mod-title">
			<uni-icons type="calendar-filled" color="#00b1ff" size="20"></uni-icons>
			<text style="padding-left: 20rpx;">账单列表</text>
		</view>
		<billDomList :yhbh="yhbh"/>
	</view>
	<cUserinfoSelect v-if="!yhbh" @setYhbh="setYhbh"/>  
</template>

<script setup lang="ts">
	import cUserinfoSelect from "@/pages/bspsd/components/userinfo-select.vue";
	import userinfoTop from "@/pages/bspsd/components/userinfo-top";
	import billDomList from "./list";
	import {ref} from 'vue';
	import { onLoad } from '@dcloudio/uni-app'
	
	let yhbh = ref("")
	
	onLoad((option) => {
		yhbh.value = option.yhbh
	});
	
	function setYhbh(value: string){
		yhbh.value = value
	}
	
</script>

<style lang="scss" scoped>
</style>